package org.aeon.gamechatnest.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.aeon.gamechatnest.common.Constant;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

/**
 * 频道待同步消息
 *
 * @author : Qik 2024/5/14 18:56
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Document(collection = Constant.CHANNEL_SYNCHRONIZE_MESSAGE)
public class ChannelSyncMessageDto implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;
    /**
     * id
     */
    @Id
    private String id;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 频道id
     */
    private Long channelId;

    /**
     * 消息id列表
     */
    private String messageId;

    /**
     * 创建时间
     */
    private Date createTime;
}
